/**
 * Created by lzy-pc on 2016/7/25.
 */
var express = require('express');
var app = express();

app.use(express.static('js'));

app.get('/index', function (req, res) {
    res.sendFile(__dirname + '/js/index.html');
});

app.get('/ajax', function (req, res) {
    res.json({
        name: 'zx',
        age: 23
    });
});

app.listen(3000);